
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
    <title>显示登录的用户信息</title>
</head>
<body>
<br/>
<center>
    <h3>欢迎光临</h3>
</center>
<br />
<br />
<c:choose>
    <c:when test="${sessionScope.user==null}">
        用户登录
    </c:when>
    <c:otherwise>
        欢迎你,${sessionScope.user.username}!
        注销
    </c:otherwise>
</c:choose>
</body>
</html>
